<?php $this->placeholder('adminnav')->captureStart() ?>
<?php $adminSession = new Zend_Session_Namespace('Store_Admin'); ?>

<nav role="navigation" class="navbar navbar-default navbar-fixed-top">
	<div class="container">
		<div class="navbar-header" style="float: left">
			<a href="<?php echo $this->baseUrl() ?>/admin" class="navbar-brand">Spletna Trgovina</a>
		</div>
		<div class="navbar-collapse collapse" id="navbar">
			<?php if ($adminSession->adminId): ?>
				<ul class="nav navbar-nav">
					<li><a href="<?php echo $this->url(array('action' => 'dashboard')) ?>">
					Administracijsko namizje</a></li>
					<li><a href="<?php echo $this->url(array('action' => 'edit')) ?>">
					Urejanje administracijskega računa</a></a></li>
					<li><a href="<?php echo $this->url(array('action' => 'seller-grid')) ?>">
					Urejanje prodajalcev</a></li>
    			</ul>
			<?php endif; ?>
			<div class="quick-access navbar-right">
				<ul>
					<?php if ($adminSession->adminId): ?>
						<li><p>Logiran uporabnik: <?php echo $adminSession->ime; ?></p> <form action="<?php echo $this->baseUrl()."/admin/logout" ?>" style="display: inline;"><button type="submit" class="btn btn-danger">Odjava</button></form></li>
					<?php endif; ?>
				</ul>
			</div>
			</div>
	</div>
</nav>
<?php $this->placeholder('adminnav')->captureEnd() ?>